From 8c2825a555e07428c6af8691ab3a1956af2744b3 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 3 Apr 2003 17:27:38 +0000 Subject: [PATCH] Fix shortname generation. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@326 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/csv_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index 1da64e47b..aefebd80a 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -590,7 +590,8 @@ xcsv_waypt_pr(const waypoint *wpt) if ((anyname) && (global_opts.synthesize_shortnames)) { char *oldname = anyname; - anyname = mkshort(xcsv_file.mkshort_handle, oldname); + anyname = mkshort(xcsv_file.mkshort_handle, + wpt->notes ? wpt->notes : wpt->description); xfree(oldname); } -- 2.30.2